<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:p="http://primefaces.org/ui">

<h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <title>GeMaSis</title>
</h:head>
<h:body>
<h:form prependId="false">
                        <p:dialog header="Area restrita"
                                          modal="true"
                                          closable="false"
                                          position="center"
                                          widgetVar="modalLogin"
                                          minWidth="300"
                                          width="300"
                                          showEffect="slide" 
                                  draggable="false"
                                  resizable="false"
                                  visible="true">                
                                <center>         
                                        <p:messages id="mensagens" showDetail="true" showSummary="false" />                              
                                        <h:panelGrid columns="2">               
                                        <h:outputLabel value="Login" />
                                        <h:inputText id="j_username" size="15" />
                                                <h:outputLabel value="Senha" />
                                                <h:inputSecret id="j_password" size="15" />
                                        </h:panelGrid>
                                        <br />  
                                        <h:commandButton value="Entrar" action="#{loginMB.logar}" />            
                                </center>
                        </p:dialog>
                </h:form>
</h:body>
</html>